import { openBuildService } from '../../helper/service';

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const storeSettings = {
    // 半成品加工出库统计
    getPartPreParProducts: {
        url: '/api/v3/half/half_sta',
        method: 'get'
    },
    //原材料累计TOP10
    getMaterialTop: {
        url: '/api/v3/half/materiel_top',
        method: 'get'
    },
    //获取原材料累计库存
    getMaterialStoreData: {
        url: '/api/v3/half/materiel_stock',
        method: 'get'
    },
    //出入库月度环比
    getMonthSta: {
        url: '/api/v3/half/month_sta',
        method: 'get'
    },
    //原材料动态
    getMateiralDyn: {
        // url: 'http://mock.hzdingmao.com/mock/330/api/v3/half/materiel_dynamic',
        url: '/api/v3/half/materiel_dynamic',
        method: 'get'
    },
    //物料分类列表(自定义)
    getMaterialTypeList: {
        url: '/api/v3/half/materiel_type_list',
        method: 'get'
    },
    //累计原材料采购费
    getMaterialFees: {
        url: '/api/v3/half/materiel_fees',
        method: 'get'
    },
    //地图数据
    getMapData: {
        url: '/api/v3/half/map_data',
        method: 'get'
    },
    //半成品物料库列表
    getThingData: {
        url: '/api/v3/half/get_materiel_library',
        method: 'get'
    },
    //物料分类列表,物料库查询
    getThingClassify: {
        url: '/api/v3/half/get_materiel_type/by_library_id',
        method: 'get'
    },
    //原材料出入库走势
    meterialTrend: {
        url: '/api/v3/half/materiel_in_out_trend',
        method: 'get'
    }
}
export default {...openBuildService(storeSettings) };